package com.bitcola.security.statistics.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 *  @author wx
 * @create 2018-11-14 10:12
 **/
@FeignClient(value = "bitcola-push")
@Repository
public interface IPushFeign {

    @RequestMapping(value = "notice/warning",method = RequestMethod.GET)
    void withdrawError(@RequestParam("message") String message,@RequestParam("telephone")String telephone);
    @RequestMapping(value = "DingDing/push",method = RequestMethod.POST)
     boolean push(@RequestBody Map<String,String> content);
    @RequestMapping(value = "captcha/notice",method = RequestMethod.GET)
     void notice(@RequestParam("tel") String  tel,@RequestParam("content")String content);



}
